<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>秋秋音乐</title>
    <link rel="stylesheet" type="text/css" href="style.css" />
    <link rel="shortcut icon" href="#"/>
</head>
<body>  
    <div id="center-in-center">
        <div class="header">
            <span class="title">秋秋音乐</span>
            <div class="search">
                <input type="text" class="text" placeholder="请输入歌曲或者歌手..." v-model="result"
                       @keyup.enter="find">
                <img src="img/search.png" alt="" class="icon_search">
            </div>
        </div>
        <div class="content">
            <div class="list">
                <strong class="song_title">单曲</strong>
                <ul class="song">
                    <li class="list_song" v-for="(item,index) in resultList">
                        <a href="#" class="song_left" @dblclick="start(item.id,item.name,item.artists[0].name)">
                            {{index}}.{{item.name}}——{{item.artists[0].name}}
                        </a>
                            <img class="like" src="img/like.png" alt="" @click="addlike(index)">

                    </li>
                </ul>
            </div>
            <div class="video">
                <h1>{{singer}} {{songTitle}} </h1>
                <img class="rotate" :src="musicimage" alt=""
                     :style="{'animation-play-state':animationShow}">
            </div>
            <div class="remark">
                <strong>热门评论</strong>
                <ul class="list_remark">
                    <li v-for="item in hotComments">
                            <img :src="item.user.avatarUrl" alt="" class="photo">
                            <strong class="name">{{item.user.nickname}}</strong>
                            <span class="remark_content">{{item.content}}</span>
                            <label class="date">{{item.time}}</label>
                    </li>
                </ul>
            </div>
        </div>
        <div class="footer">
            <audio class="myaudio" :src="musicUrl" controls="controls"  loop="loop" autoplay
                   @play="play" @pause="pause">                
            </audio>
              
        </div>
    </div>
    <!-- 官网提供的 axios 在线地址 -->
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
     <!-- 开发环境版本，包含了有帮助的命令行警告 -->
     <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script src="main.js"></script>
</body>

</html>